<template>
  <n-config-provider 
    :locale="zhCN"
    :date-locale="dateZhCN"
    :theme-overrides="setThemeOverrides"
  >
    <AppProvider>
      <RouterView />
    </AppProvider>
  </n-config-provider>
</template>

<script setup lang="ts">
  import { AppProvider } from '@/components/Application';
  import { zhCN, dateZhCN } from 'naive-ui';
  import { setThemeOverrides } from "@/utils/naiveDiscreteApi"
</script>

<style lang="scss">
  @import '@/styles/index.scss';
  @import '@/styles/font.scss';
  .n-config-provider {
    height: 100%;
  }
</style>
